//
//  SCNetworkTool.h
//  Mutal
//
//  Created by TonyStart on 16/10/18.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef enum : NSUInteger {
    GET,
    POST
} requetMethod;
#define BASE_URL @"http://www.scxxhs.com/huzhu/index.php?"
NSString * urlMakeWithDict(NSDictionary *dict);
NSString * urlAndParamBuild(NSString *g,NSString *m,NSString *a);
@interface SCNetworkTool : AFHTTPSessionManager
+(instancetype)shared;

-(void)requestDataWithMethod:(requetMethod)method
                         url:(NSString*)url
                      finish:(void(^)(id data,NSError *err,NSInteger code))finish;

@end
